package org.liuping.service;

import org.liuping.entity.UserEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import org.liuping.exception.*;
import org.liuping.vo.UserLoginVo;
import org.liuping.vo.UserRegistryVo;

/**
* @author liupi
* @description 针对表【t_users】的数据库操作Service
* @createDate 2023-03-30 11:28:54
*/
public interface UserService extends IService<UserEntity> {

    //判断登录
    void login(UserLoginVo userLoginVo) throws UsernamePasswordErrorException;
    /**
     * 用户注册
     */
    void registry(UserRegistryVo userRegistryVo) throws PasswordConfirmException, UsernameOrEmailExistException, CodeErrorException;
    //发送验证码
    void sendCode(String email) throws GetEmailCodeTooFastException;
    //第三方调用userService进行注册
    UserEntity giteeOauthRegistry(UserRegistryVo userRegistryVo);
    //第三方调用登录功能
    void giteeOauthLogin(UserEntity userEntity);
}
